package com.wteam.dragon.shop.pojo.dto;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.wteam.dragon.shop.pojo.bean.ProductSort;
import lombok.Getter;
import lombok.Setter;

import java.util.List;


/**
 * @Author 陈晓辉
 * @Date 2020/7/2 12:18
 */
@Getter
@Setter
@TableName("product_sort")
public class ProductSortDto {
    private Long id;

    private Long parentId;

    private String name;

    private String productUnit;

    private Integer navStatus;

    private Integer showStatus;

    private Integer sort;

    private String icon;

    private String keywords;

    private String description;

    @TableLogic
    private Boolean isDelete;

    @TableField(exist = false)
    @JsonInclude()
    private List<ProductSort> sonList;
}
